-
Notifications
You must be signed in to change notification settings - Fork 211
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[ECP-9196] Add optional quoteId to getShopperReference to allow tokenization for guest shoppers #2620
base: main
Are you sure you want to change the base?
Conversation
Thank you for your contribution, it is greatly appreciated. After reviewing your implementation internally, we have a few suggestions to align the solution with our overall strategy. We believe it would be beneficial for merchants to have the flexibility to pass their own shopper reference in the request, overriding the default value provided by our plugin. This approach would empower merchants to manage shopper references as per their specific requirements, without the need for additional logic within the plugin. An example of the optional parameter implementation according to our strategy could be found in this PR. Could you kindly adjust your PR to reflect this feedback? We are confident that these changes will enhance the functionality and usability of the plugin. Thank you once again for your valuable contribution and collaboration. Kind regards, |
@RokPopov I made the suggested changes and also tried to import the I think this will achieve the basic aim of passing in a |
Description
This PR addresses #2607 and adds a way to link guest-carts to a predictable but unique shopperReference (guest-cart prefix plus the cartId). If the
quoteId
is missing, it falls back to the olduuid
behavior.In the above Github issue, I outlined a few possible solutions to our issue. I believe this is the "least invasive" way to achieve our goals.
Tested scenarios
Extended existing unit testing strategy for
getShopperReference
Fixes #2607